﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Login.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PresentationLayer.Login1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div align="center">
        <br />
        <h2>Login</h2>        
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
        <br />
            <asp:ValidationSummary ID="ValidationSummaryLogin" runat="server" DisplayMode="List" ForeColor="Red" ValidationGroup="LoginGrp" />

        <table class="table-condensed">
            <tr>
                <td>Username</td>
                <td class="auto-style1">
                    <input id="txtUsername" name="txtUsername" type="text" runat="server" class="form-control"/>
                    
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvUsername" runat="server" ErrorMessage="* Please enter your username" Text="*" ControlToValidate="txtUsername" Enabled="True" ValidationGroup="LoginGrp" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Password</td>
                <td >
                    <input id="txtPassword" name="txtPassword" type="password" runat="server" class="form-control"/>
                </td>
                <td >
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ErrorMessage="* Please enter your password" ControlToValidate="txtPassword" ForeColor="Red" ValidationGroup="LoginGrp">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnLogin_Click" ValidationGroup="LoginGrp" CssClass="btn-primary" Width="78px" />
                    &nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn-success" Width="74px" />
                </td>
            </tr>
        </table>

            <br />
    </div>
</asp:Content>
